package com.hzqy.persistence.dao.volte;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.volte.VolteReserveVo;

@Repository
public class VolteReserveDao extends PersistenceDao<VolteReserveVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public int selectReserveCount(Map<String, Object> map) {
		return getSqlSession().selectOne(this.getNamespace()+"selectReserveCount",map);
	}
	
	public List<VolteReserveVo> selectReserveList(Map<String, Object> map) {
		return getSqlSession().selectList(this.getNamespace()+"selectReserveList",map);
	}
	
	public int updateReserve(int f_vr_id) {
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "updateReserve", f_vr_id);
	}
	
}
